package org.example.jwtdemo.service.impl;

import org.example.jwtdemo.entity.User;
import org.example.jwtdemo.mapper.UserMapper;
import org.example.jwtdemo.service.UserService;
import org.example.jwtdemo.utils.ThreadLocalUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public User getUserInfo(User user) {

        return userMapper.getUserById(user.getId());
    }
}
